package active.visitor;

public abstract class Person {

    public abstract void accept(Action action);


    public static class Man extends Person {

        @Override
        public void accept(Action action) {
            action.getManResult(Person.Man.this);
        }
    }


    public static class Woman extends Person {
        @Override
        public void accept(Action action) {
            action.getWomanResult(Person.Woman.this);
        }
    }


}
